package com.yyx.app1.incompatibility_function.Controls.Incompatibility_ListView_Control;

import android.content.Context;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.yyx.app1.MedicationAssistant_function.Controls.MedicationAssistant_Activity_Control.Three_ListView.ItemDataType;
import com.yyx.app1.R;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by yuexing on 2015/9/8.
 */
@EViewGroup(R.layout.itemview_incompatibility_listview)
public class Incompatibility_ListView_ItemView extends RelativeLayout {
    public Incompatibility_ListView_ItemView(Context context) {
        super(context);
    }

    @ViewById
    ImageView second_listview_ico_background;

    @ViewById
    TextView second_listview_starttext,second_listview_text;

    @ViewById
    RelativeLayout left_listview_backgroup;

    @AfterViews
    public void inti()
    {
        second_listview_starttext.setTextSize(16);
        second_listview_text.setTextSize(16);
    }

    public void bind(int number ,String name)
    {
        left_listview_backgroup.setPadding(20, 0, 0, 0);
        second_listview_starttext.setText(++number + "");
        second_listview_text.setText(name);
    }

    public ImageView getSecond_listview_ico_background() {
        return second_listview_ico_background;
    }

    public TextView getSecond_listview_starttext() {
        return second_listview_starttext;
    }

    public TextView getSecond_listview_text() {
        return second_listview_text;
    }
}
